/**
 * 
 */
package GUI;

import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.Font;
import java.awt.Color;

/**
 * @author aviat
 *
 */
public class ViewEvent extends JPanel{

	
	private static final long serialVersionUID = 1L;
	private JButton btnBack;
	private JLabel iconlabel;
	private JLabel lblDate;
	private JLabel lblPlace;
	private JLabel lblGroomName;
	private JLabel lblBrideName;
	private JLabel lblBridePhone;
	private JTextField EventDatetextField;
	private JTextField EventPlacetextField;
	private JTextField BrideNametextField;
	private JTextField GroomPhonetextField;
	private JTextField GroomNametextField;
	private JLabel lblGroomPhone;
	private JTextField BridePhonetextField;
	private JLabel lblPrice;
	private JLabel lblPaid;
	private JTextField PricetextField;
	private JTextField PaidtextField;
	private JTextField EventTimetextField;

	/**
	 * Constructor
	 */
	public ViewEvent() {
		setLayout(null);
		btnBack = new JButton("Back");
		btnBack.setIcon(new ImageIcon(ViewEvent.class.getResource("/resources/back22.png")));
		EventDatetextField = new JTextField();
		EventPlacetextField = new JTextField();
		BrideNametextField = new JTextField();
		GroomPhonetextField = new JTextField();
		BridePhonetextField = new JTextField();
		GroomNametextField = new JTextField();
		PricetextField = new JTextField();
		PaidtextField = new JTextField();
		EventTimetextField = new JTextField();
		
		
		initialize();
	}

	private void initialize() {
		
		EventDatetextField.setEditable(false);
		EventPlacetextField.setEditable(false);
		BrideNametextField.setEditable(false);
		GroomPhonetextField.setEditable(false);
		BridePhonetextField.setEditable(false);
		GroomNametextField.setEditable(false);
		
		JLabel lblViewEvent = new JLabel("View Event");
		lblViewEvent.setForeground(new Color(0, 204, 255));
		lblViewEvent.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblViewEvent.setBounds(10, 11, 143, 25);
		add(lblViewEvent);
		

		btnBack.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnBack.setBounds(10, 462, 101, 27);
		add(btnBack);
		
		ImageIcon LOGOImageIcon = new ImageIcon(getClass().getClassLoader().getResource("resources/camera-background3.png"));
		ImageIcon LOGO = new ImageIcon (LOGOImageIcon.getImage().getScaledInstance(-1, -1, java.awt.Image.SCALE_SMOOTH));
		
		lblDate = new JLabel("Date");
		lblDate.setForeground(Color.WHITE);
		lblDate.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblDate.setBounds(65, 107, 88, 27);
		add(lblDate);
		
		lblPlace = new JLabel("Place");
		lblPlace.setForeground(Color.WHITE);
		lblPlace.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblPlace.setBounds(65, 180, 88, 27);
		add(lblPlace);
		
		lblGroomName = new JLabel("Groom Name");
		lblGroomName.setForeground(Color.WHITE);
		lblGroomName.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblGroomName.setBounds(303, 107, 109, 27);
		add(lblGroomName);
		
		lblBrideName = new JLabel("Bride Name");
		lblBrideName.setForeground(Color.WHITE);
		lblBrideName.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblBrideName.setBounds(303, 180, 109, 27);
		add(lblBrideName);
		
		lblBridePhone = new JLabel("Bride Phone");
		lblBridePhone.setForeground(Color.WHITE);
		lblBridePhone.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblBridePhone.setBounds(303, 333, 109, 27);
		add(lblBridePhone);
		
		EventDatetextField.setBounds(163, 105, 112, 27);
		add(EventDatetextField);
		EventDatetextField.setColumns(10);
		
		EventPlacetextField.setText("");
		EventPlacetextField.setBounds(163, 178, 112, 27);
		add(EventPlacetextField);
		EventPlacetextField.setColumns(10);
		
		BrideNametextField.setBounds(422, 178, 118, 27);
		add(BrideNametextField);
		BrideNametextField.setColumns(10);
		
		GroomPhonetextField.setBounds(422, 257, 112, 27);
		add(GroomPhonetextField);
		GroomPhonetextField.setColumns(10);
		
		GroomNametextField.setBounds(422, 105, 118, 27);
		add(GroomNametextField);
		GroomNametextField.setColumns(10);
		
		lblGroomPhone = new JLabel("Groom Phone");
		lblGroomPhone.setForeground(Color.WHITE);
		lblGroomPhone.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblGroomPhone.setBounds(304, 259, 88, 27);
		add(lblGroomPhone);
		
		BridePhonetextField.setBounds(422, 331, 118, 27);
		add(BridePhonetextField);
		BridePhonetextField.setColumns(10);
		
		lblPrice = new JLabel("Price");
		lblPrice.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblPrice.setForeground(Color.WHITE);
		lblPrice.setBounds(65, 314, 88, 27);
		add(lblPrice);
		
		lblPaid = new JLabel("Paid");
		lblPaid.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblPaid.setForeground(Color.WHITE);
		lblPaid.setBounds(65, 388, 88, 27);
		add(lblPaid);
		
		
		PricetextField.setEditable(false);
		PricetextField.setBounds(163, 315, 112, 27);
		add(PricetextField);
		PricetextField.setColumns(10);
		
		
		PaidtextField.setEditable(false);
		PaidtextField.setBounds(163, 389, 112, 27);
		add(PaidtextField);
		PaidtextField.setColumns(10);
		
		JLabel lblEventTime = new JLabel("Event Time");
		lblEventTime.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblEventTime.setForeground(Color.WHITE);
		lblEventTime.setBounds(65, 246, 89, 21);
		add(lblEventTime);
		
		
		EventTimetextField.setBounds(163, 244, 118, 27);
		add(EventTimetextField);
		EventTimetextField.setColumns(10);
		
		iconlabel = new JLabel("");
		iconlabel.setIcon(LOGO);
		iconlabel.setBounds(0, 0, 786, 500);
		add(iconlabel);
		
		JButton btnPickVideo = new JButton("Pick Video");
		btnPickVideo.setBounds(303, 391, 89, 23);
		add(btnPickVideo);
		
		JButton btnPlayVideo = new JButton("Play Video");
		btnPlayVideo.setBounds(422, 391, 89, 23);
		add(btnPlayVideo);
	}

	/**
	 * @return the eventDatetextField
	 */
	public JTextField getEventDatetextField() {
		return EventDatetextField;
	}

	/**
	 * @param eventDatetextField the eventDatetextField to set
	 */
	public void setEventDatetextField(JTextField eventDatetextField) {
		EventDatetextField = eventDatetextField;
	}

	/**
	 * @return the eventPlacetextField
	 */
	public JTextField getEventPlacetextField() {
		return EventPlacetextField;
	}

	/**
	 * @param eventPlacetextField the eventPlacetextField to set
	 */
	public void setEventPlacetextField(JTextField eventPlacetextField) {
		EventPlacetextField = eventPlacetextField;
	}

	/**
	 * @return the brideNametextField
	 */
	public JTextField getBrideNametextField() {
		return BrideNametextField;
	}

	/**
	 * @param brideNametextField the brideNametextField to set
	 */
	public void setBrideNametextField(JTextField brideNametextField) {
		BrideNametextField = brideNametextField;
	}

	/**
	 * @return the groomPhonetextField
	 */
	public JTextField getGroomPhonetextField() {
		return GroomPhonetextField;
	}

	/**
	 * @param groomPhonetextField the groomPhonetextField to set
	 */
	public void setGroomPhonetextField(JTextField groomPhonetextField) {
		GroomPhonetextField = groomPhonetextField;
	}

	/**
	 * @return the groomNametextField
	 */
	public JTextField getGroomNametextField() {
		return GroomNametextField;
	}

	/**
	 * @param groomNametextField the groomNametextField to set
	 */
	public void setGroomNametextField(JTextField groomNametextField) {
		GroomNametextField = groomNametextField;
	}

	/**
	 * @return the bridePhonetextField
	 */
	public JTextField getBridePhonetextField() {
		return BridePhonetextField;
	}

	/**
	 * @param bridePhonetextField the bridePhonetextField to set
	 */
	public void setBridePhonetextField(JTextField bridePhonetextField) {
		BridePhonetextField = bridePhonetextField;
	}

	/**
	 * @return the pricetextField
	 */
	public JTextField getPricetextField() {
		return PricetextField;
	}

	/**
	 * @param pricetextField the pricetextField to set
	 */
	public void setPricetextField(JTextField pricetextField) {
		PricetextField = pricetextField;
	}

	/**
	 * @return the paidtextField
	 */
	public JTextField getPaidtextField() {
		return PaidtextField;
	}

	/**
	 * @param paidtextField the paidtextField to set
	 */
	public void setPaidtextField(JTextField paidtextField) {
		PaidtextField = paidtextField;
	}

	/**
	 * @param btnBack the btnBack to set
	 */
	public void setBtnBack(JButton btnBack) {
		this.btnBack = btnBack;
	}

	
	/**
	 * @return the btnBack
	 */
	public JButton getBtnBack() {
		return btnBack;
	}

	/**
	 * @return the eventTimetextField
	 */
	public JTextField getEventTimetextField() {
		return EventTimetextField;
	}

	/**
	 * @param eventTimetextField the eventTimetextField to set
	 */
	public void setEventTimetextField(JTextField eventTimetextField) {
		EventTimetextField = eventTimetextField;
	}
}
